/*
 * Created on 2-Jul-06
 * Filename: ReducatableCommand.java
 * @author Daniel Yule
 * 
 */
package com.danicsoft.daide.command;

import com.danicsoft.daide.token.TokenGroup;

public abstract class ReducibleCommand extends Command {


	public Command command;
	
	public ReducibleCommand() {
		super();
	}

	public ReducibleCommand(TokenGroup tokens) throws ParseException {
		super(tokens);
	}

	public Command Reduce() {
		return command;
	}
	
	@Override
	public boolean isReducible() {
		return true;
	}

	public void doIO(TokenIO tokenIO, TokenGroup tokens) throws ParseException {
	command = tokenIO.doCommand(tokens, command, this);
	}
	

}
